﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Freetour.UI.Models.Membership.Account
{
    public class PersonalModel
    {
        [Required(ErrorMessage = "姓名不能为空")]
        [DisplayName("姓名")]
        public string Name { get; set; }

        [Required]
        [DisplayName("性别")]
        public bool Sex { get; set; }

        [Required(ErrorMessage = "身份证不能为空")]
        [DisplayName("身份证")]
        public string IndentityID { get; set; }

        [Required(ErrorMessage = "手机号码不能为空")]
        [DisplayName("手机号码")]
        public string CellPhone { get; set; }

        [Required(ErrorMessage = "传真号码不能为空")]
        [DisplayName("传真号码")]
        public string Fax { get; set; }

        [Required(ErrorMessage = "固定电话不能为空")]
        [DisplayName("固定电话")]
        public string Telephone { get; set; }

        [Required]
        [DisplayName("婚姻")]
        public bool IsSingle { get; set; }

        [Required(ErrorMessage = "电子邮件不能为空")]
        [DisplayName("电子邮件")]
        public string Email { get; set; }
    }
}